//
//  MarriageTableViewCell.m
//  MobileOffice
//
//  Created by jjkj on 16/11/9.
//  Copyright © 2016年 liaoningjujin. All rights reserved.
//

#import "MarriageTableViewCell.h"

@implementation MarriageTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self=[super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.userInteractionEnabled=YES;
        _myTitleLabel=[MyControl creatLabelWithFrame:CGRectMake(13, 10, IPHONE_WIDTH-13-35, 30) text:@""];
        //_myTitleLabel.textAlignment=NSTextAlignmentCenter;
        _myTitleLabel.layer.masksToBounds=YES;
        _myTitleLabel.layer.cornerRadius=5;
        [self.contentView addSubview:_myTitleLabel];
        
        //        _messageLabel=[MyControl creatLabelWithFrame:CGRectMake(_myTitleLabel.x+_myTitleLabel.width+5, 15, IPHONE_WIDTH-(_myTitleLabel.x+_myTitleLabel.width)-5, 20) text:@""];
        //        _messageLabel.textColor=[UIColor blackColor];
        //        //_messageLabel.font=FONT_17;
        //        [self.contentView addSubview:_messageLabel];
        
  
        
        _signButton=[UIButton buttonWithType:UIButtonTypeCustom];
        _signButton.frame=CGRectMake(IPHONE_WIDTH-35, 15, 20, 20);
        [_signButton setBackgroundImage:[UIImage imageNamed:@"icon_notselect@2x"] forState:UIControlStateNormal];
        [_signButton setBackgroundImage:[UIImage imageNamed:@"icon_select@2x"] forState:UIControlStateSelected];
        _signButton.userInteractionEnabled=NO;
        //[_signButton addTarget:self action:@selector(signButtonClick) forControlEvents:UIControlEventTouchUpInside];
        [self.contentView addSubview:_signButton];
        
        _lineLabel=[[UILabel alloc]initWithFrame:CGRectMake(0, 49, IPHONE_WIDTH, 1)];
        _lineLabel.backgroundColor=BACKCOLOR_GRAY;
        [self.contentView addSubview:_lineLabel];
        self.contentView.width=IPHONE_WIDTH;
    }
    return self;
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
